import java.awt.*;
public class Gold extends Object {
    Gold(){
        this.x=(int)(Math.random()*500);//生成金块的纵坐标
        this.y=(int)(Math.random()*450+300);
        this.width=52;
        this.height=52;
        this.flag=false;//是否被勾中
        this.m = 30;
        this.money=200;//金块的钱
        this.type=1;
        this.img=Toolkit.getDefaultToolkit().getImage("img/gold1.gif");
    }
}
class GoldMini extends Gold{
    GoldMini() {
        this.width=36;
        this.height=36;
        this.m = 20;
        this.money=100;
        this.img=Toolkit.getDefaultToolkit().getImage("img/gold0.gif");//把金块图片导入
    }
}
class GoldPlus extends Gold{
    GoldPlus(){
        this.width=105;
        this.x=(int)(Math.random()*550);
        this.height=105;
        this.m = 115;
        this.money=500;
        this.img=Toolkit.getDefaultToolkit().getImage("img/gold2.gif");
    }
}
